package main

import (
	"flag"
	"log"
	"path/filepath"

	"gitee.com/xuender/findzip"
)

func main() {
	flag.Parse()
	if flag.NArg() < 2 {
		log.Panicln("缺少参数: 参数1: 搜索目录, 参数2: 搜索内容")
	}

	abs, err := filepath.Abs(flag.Arg(0))
	if err != nil {
		log.Panicln(err)
	}

	filepath.Walk(abs, findzip.Wail)
}
